<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>MMV</title>
    <link rel="stylesheet" type="text/css" href="../css/body.css">
    <link rel="stylesheet" type="text/css" href="../css/page.css">
</head>
<body>
    <div class="row">
        <p>服务器状态：</p>
        <p id="state" style="color: red">停止</p>
        <p style="margin-left: 32px;">当前在线人数：</p>
        <p id="nowPlayerNum" style="color: #50A000">0</p>
        <p style="margin-left: 32px;">限制在线人数：</p>
        <p id="maxPlayerNum" style="color: #FFA000">0</p>
        <p style="margin-left: 32px;">已注册人数：</p>
        <p id="allPlayerNum" style="color: #C07000">0</p>
        <p style="margin-left: 32px;">服务器ID：</p>
        <p id="serverID" style="color: #C07000" onclick="copyServerID(event)">********</p>
        <p style="margin-left: 32px;">服务器版本：</p>
        <p id="serverVersion" style="color: #C07000">********</p>
        <button id="button_run" style="float: right" onclick="onChangeServerState(event)">启动</button>
    </div>
    <div class="row">
        <p style="font-weight: 900;width: 100%;font-size: 24px;margin-bottom: 8px">存档配置</p>
        <div>
            <p>&emsp;&emsp;存档名称：</p>
            <input id="name" style=";width: 311px">
            <p style="margin-left: 32px">存档描述：</p>
            <input id="content">
            <p style="margin-left: 32px">在线人数上限：</p>
            <input id="maxOnlineNum" value="10" type="number"/>
        </div>
        <div>
            <p>开启自动保存：</p>
            <input id="autoSaveOpen" type="checkbox">
            <p style="margin-left: 32px">保存间隔：</p>
            <input id="autoSaveInterval" type="number" value="1">
            <p style="margin-left: 32px">间隔单位：</p>
            <select id="autoSaveUnit" style="width: 80px"><option value="day">日</option><option value="month">月</option><option value="year">年</option></select>
        </div>
        <div>
            <p>开启密码验证：</p>
            <input id="passwordTestOpen" type="checkbox">
            <p style="margin-left: 32px">默认密码：</p>
            <input id="passwordDefault" type="password" onmousedown="changeInputType(event)" title="鼠标中键可切换模式">
            <p class="tip">新玩家注册时的默认登陆密码</p>
        </div>
        <div>
            <p>开启显示限制：</p>
            <input id="showRoleOpen" type="checkbox">
            <p style="margin-left: 32px">限制数量：</p>
            <input id="showRoleNum" type="number" value="20">
            <p class="tip">地图上显示的玩家数量</p>
        </div>
        <div>
            <p>开启后台指令：</p>
            <input id="commandOpen" type="checkbox">
            <p class="tip">玩家可使用指令</p>
        </div>
        <div>
            <p>开启重名禁用：</p>
            <input id="nicknameRepetitionNPC" type="checkbox">
            <p class="tip">玩家昵称与NPC名称重名</p>
        </div>
        <div>
            <p>开启邮箱服务：</p>
            <input id="emailOpen" type="checkbox">
            <p style="margin-left: 32px">服务邮箱：</p>
            <input id="emailAccount">
            <p style="margin-left: 32px">邮箱密码：</p>
            <input id="emailPassword" type="password" onmousedown="changeInputType(event)" title="鼠标中键可切换模式">
            <p style="margin-left: 32px">授权密码：</p>
            <input id="emailCode" type="password" onmousedown="changeInputType(event)" title="鼠标中键可切换模式">
            <p style="margin-left: 32px">服务签名：</p>
            <input id="emailSignature">
            <p class="tip">仅支持163邮箱</p>
        </div>
        <div>
            <p>开启违禁词库：</p>
            <input id="prohibitedWordsOpen" type="checkbox">
            <p style="margin-left: 32px">校验API：</p>
            <input id="prohibitedWordsAPI" style="width: 487px" title="需要替换的文本关键词 [AppID] 、 [ApiKey]">
            <p style="margin-left: 32px">AppID：</p>
            <input id="prohibitedWordsAppID" style="width: 189px" type="password" onmousedown="changeInputType(event)" title="鼠标中键可切换模式">
            <p style="margin-left: 32px">ApiKey：</p>
            <input id="prohibitedWordsApiKey" style="width: 184px" type="password" onmousedown="changeInputType(event)" title="鼠标中键可切换模式">
            <p class="tip">仅支持百度违禁词</p>
        </div>
        <div>
            <button style="float: right" onclick="onSaveProperties()">保存修改</button>
        </div>
    </div>
</body>
<script src="../js/http.js"></script>
<script src="../js/page_0.js"></script>
</html>